FROM node:14-alpine

WORKDIR /home/koa

ADD server /home/koa

RUN npm install -registry=https://registry.npm.taobao.org
RUN npm install pm2 -g

ENTRYPOINT ["pm2-runtime", "ecosystem.config.js", "--env", "prod", "--only", "gogo_server"]